﻿using System;

namespace wars2
{
    class Program
    {
        static void Main(string[] args)
        {
            Converter converter = new Converter();
            Operations operations = new Operations();

            Console.WriteLine("\nWrite a number");
            operations.firstValue = converter.convertToDouble(Console.ReadLine());
            while (true)
            {

                Console.WriteLine($"\nWrite a math sign");
                operations.mathSign = converter.convertMathSign(Console.ReadLine());
                Console.WriteLine(operations.operationType(operations.mathSign));
                operations.secondValue = converter.convertToDouble(Console.ReadLine());

                Console.WriteLine($"{operations.firstValue} {operations.mathSign} {operations.secondValue} = {operations.MathCalculationSwitch(operations.secondValue, operations.mathSign)} ");
            }
        }
    }
}